package com.service;

import com.bean.Power;
import com.bean.Role;
import com.bean.User;

import java.util.List;

public interface UserService {
    List<User> getAllUsers();

    User returnUser(String account);

    boolean accountPasswordIsEqual(String account,String password);

    List<String> getNowUserPower(User user);

    boolean addUser(User user, List<String> roleNames);

    boolean deleteUser(int key);

    boolean updateUserRole(int key, List<String> roleNames);

    int updatePassword(User user, String oldPsw,String NewPsw,String sedNewPsw);

    List<User> getFindUsers(String userName);

    User getSelectUser(int key);
}
